
import g_class


class b_import:
	def __init__(self):
		#import module list
		self.import_list = {}

	def add(self,name):
		self.compile(name)

	def compile(self,name):
		g_class.CALL("component",name)

def compile(stat):
	name = ""
	while (True):
		token = stat.popleft()
		if token == None or token.type == "SEMI": break
		name = name + token.value
	if name not in g.import_list:
		g.import_list[name] = g.add(name)


g = b_import()
